package com.woniu.service;


import com.woniu.entity.CheckStatus;
import com.woniu.mapper.CheckStatusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckStatusService {


    @Autowired
    private CheckStatusMapper checkStatusMapper;


    public boolean save(List<CheckStatus> list){
        for (CheckStatus checkStatus : list) {
            checkStatusMapper.insert(checkStatus);
        }
        return true;
    }

    public List<CheckStatus> findAllCheckStatus() {

        return checkStatusMapper.selectAll();


    }
}
